﻿/* Created by Subodh Shrestha
 * Contact: forsubodh@gmail.com */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TravelExpertsManagementConsole
{
    public class Package
    {
        private int _pkgId;
        private string _pkgName;
        private DateTime _pkgStartDate;
        private DateTime _pkgEndDate;
        private string _pkgDesc;
        private Decimal _pkgBasePrice;
        private Decimal _pkgCommission;
        private List<Product> _pkgProducts;
        private string _pkgDestination;

        public int PkgId
        {
            get { return _pkgId; }
            set { _pkgId = value; }
        }

        public string PkgName
        {
            get { return _pkgName; }
            set { _pkgName = value; }
        }

        public DateTime PkgStartDate
        {
            get { return _pkgStartDate; }
            set { _pkgStartDate = value; }
        }

        public DateTime PkgEndDate
        {
            get { return _pkgEndDate; }
            set { _pkgEndDate = value; }
        }

        public string PkgDesc
        {
            get { return _pkgDesc; }
            set { _pkgDesc = value; }
        }

        public Decimal PkgBasePrice
        {
            get { return _pkgBasePrice; }
            set { _pkgBasePrice = value; }
        }

        public Decimal PkgCommission
        {
            get { return _pkgCommission; }
            set { _pkgCommission = value; }
        }

        public List<Product> PkgProducts
        {
            get { return _pkgProducts; }
            set { _pkgProducts = value; }
        }

        public string PkgDestination
        {
            get { return _pkgDestination; }
            set { _pkgDestination = value; }
        }

        public override string ToString()
        {
            return string.Format("{0} {1} {2}", PkgName, PkgStartDate.ToShortDateString(), PkgEndDate.ToShortDateString());
        }
    }
}